<?php

namespace Keio\StudyBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Package
 */
class Package
{
    /**
     * @var integer
     */
    private $id;

    /**
     * @var string
     */
    private $name;

    /**
     * @var string
     */
    private $description;

    /**
     * @var \Doctrine\Common\Collections\Collection
     */
    private $package_baihoc;

    /**
     * @var \Doctrine\Common\Collections\Collection
     */
    private $package_user;

    /**
     * Constructor
     */
    public function __construct()
    {
        $this->package_baihoc = new \Doctrine\Common\Collections\ArrayCollection();
        $this->package_user = new \Doctrine\Common\Collections\ArrayCollection();
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set name
     *
     * @param string $name
     * @return Package
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set description
     *
     * @param string $description
     * @return Package
     */
    public function setDescription($description)
    {
        $this->description = $description;

        return $this;
    }

    /**
     * Get description
     *
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Add package_baihoc
     *
     * @param \Keio\StudyBundle\Entity\Packagebaihoc $packageBaihoc
     * @return Package
     */
    public function addPackageBaihoc(\Keio\StudyBundle\Entity\Packagebaihoc $packageBaihoc)
    {
        $this->package_baihoc[] = $packageBaihoc;

        return $this;
    }

    /**
     * Remove package_baihoc
     *
     * @param \Keio\StudyBundle\Entity\Packagebaihoc $packageBaihoc
     */
    public function removePackageBaihoc(\Keio\StudyBundle\Entity\Packagebaihoc $packageBaihoc)
    {
        $this->package_baihoc->removeElement($packageBaihoc);
    }

    /**
     * Get package_baihoc
     *
     * @return \Doctrine\Common\Collections\Collection
     */
    public function getPackageBaihoc()
    {
        return $this->package_baihoc;
    }

    /**
     * Add package_user
     *
     * @param \Keio\StudyBundle\Entity\Packageuser $packageUser
     * @return Package
     */
    public function addPackageUser(\Keio\StudyBundle\Entity\Packageuser $packageUser)
    {
        $this->package_user[] = $packageUser;

        return $this;
    }

    /**
     * Remove package_user
     *
     * @param \Keio\StudyBundle\Entity\Packageuser $packageUser
     */
    public function removePackageUser(\Keio\StudyBundle\Entity\Packageuser $packageUser)
    {
        $this->package_user->removeElement($packageUser);
    }

    /**
     * Get package_user
     *
     * @return \Doctrine\Common\Collections\Collection
     */
    public function getPackageUser()
    {
        return $this->package_user;
    }
    /**
     * @var \Doctrine\Common\Collections\Collection
     */
    private $card;


    /**
     * Add card
     *
     * @param \Keio\StudyBundle\Entity\Card $card
     * @return Package
     */
    public function addCard(\Keio\StudyBundle\Entity\Card $card)
    {
        $this->card[] = $card;

        return $this;
    }

    /**
     * Remove card
     *
     * @param \Keio\StudyBundle\Entity\Card $card
     */
    public function removeCard(\Keio\StudyBundle\Entity\Card $card)
    {
        $this->card->removeElement($card);
    }

    /**
     * Get card
     *
     * @return \Doctrine\Common\Collections\Collection
     */
    public function getCard()
    {
        return $this->card;
    }
    //dành cho form để delete
    private $delform;
    public function setDelform($delform){
    	$this->delform = $delform;
    }
    public function getDelform(){
    	return $this->delform;
    }
}